package com.gdufs.secondhandwebsite.dao;

import com.gdufs.secondhandwebsite.entity.Goods;
import com.gdufs.secondhandwebsite.entity.GoodsType;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import java.util.List;
import java.util.Map;


@SpringBootTest
public class testGoodsTypeMapper {
    @Autowired GoodsTypeMapper goodsTypeMapper;
    //    int DeleteGoodsByPrimaryKey(Long goodsId);
//    Goods SelectGoodsByPrimaryKey(Long goodsId);
//    List<Goods> SelectByGoodsType(String tagName);
//    int UpdateGoodsByPrimaryKey(Goods goods);
//    int UpdateGoodsByPrimaryKeySelective(Goods goods);
    @Test
    public void TestGetGoodsGroup(){
     List<String> goodsgroup= goodsTypeMapper.getGoodsTypeGroups();
        for(String each:goodsgroup){
            System.out.println(each);
        }
    }
    @Test
   public void getGoodsTypeNamesByGroupName(){
        List<GoodsType> a=goodsTypeMapper.getGoodsTypeNamesByGroupName("美妆");
        for(GoodsType each:a){
            System.out.println(each);
        }
    }

}
